cmake_minimum_required(VERSION 3.7)
project(simplecam)
set(CMAKE_CXX_STANDARD 11)
link_directories(../wiringPi)
link_directories(../camsrv/gestrecn)
add_executable(simplecam main.cpp)
add_library(thread_mat include/thread_mat.h source/thread_mat.cpp)
add_library(thread_disp include/thread_disp.h source/thread_disp.cpp)
add_library(thread_gestrec include/thread_gestrec.h source/thread_gestrec.cpp)
find_package(OpenCV REQUIRED)
target_link_libraries(thread_mat ${OpenCV_LIBS})
target_link_libraries(thread_disp thread_mat ${OpenCV_LIBS})
target_link_libraries(thread_gestrec thread_mat ${OpenCV_LIBS} gestrec)
target_link_libraries(simplecam ${OpenCV_LIBS} thread_mat thread_disp thread_gestrec pthread wiringPi gestrec)
